Completed
Pull Request — master (#234)
by
unknown
41s
created

findForm.js ➔ getFormFromElement   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 4
nc 4
nop 1
dl 0
loc 10
rs 9.2
c 0
b 0
f 0
1
function fillPassword(user, password) {
2
    if(user){
3
        document.querySelectorAll('input[type=text], input[type=email]').forEach(function(x){x.value=user;});
4
    }
5
    if(password) {
6
        document.querySelectorAll('input[type=password]').forEach(function(x){ x.value=password;});
7
    }
8
}
9